package com._21cn.product.entity;

import com._21cn.framework.utils.StringUtil;

import java.io.Serializable;
import java.util.*;

public class Car implements Serializable {
	private static final long serialVersionUID = -1L;	
	
	private Integer id = 0;
	private String name;
	private String nameShort;
	private String keyword;
	private String firstPicUrl = "";
	private String details = "";
	private Integer sortNum = 0;
	private Integer status = 1;
	private Integer clickNum;
	private Integer shareNum;
	private Integer goodNum;
	private Integer badNum;
	private Integer createUserId = 0;
	private java.util.Date createTime = new Date();
	private Integer modifyUserId = 0;
	private java.util.Date modifyTime = new Date();

    private Cate brand = new Cate();
    private Integer brandId = 0;
    private String brandName = "";

    private Cate series = new Cate();
    private Integer seriesId = 0;
    private String seriesName = "";

    private String businessTypeStr = "";
    private String businessIds = "";

    public String getBusinessTypeStr() {
        return businessTypeStr;
    }

    public void setBusinessTypeStr(String businessTypeStr) {
        this.businessTypeStr = businessTypeStr;
    }

    public String getBusinessIds() {
        return businessIds;
    }

    public void setBusinessIds(String businessIds) {
        this.businessIds = businessIds;
    }

    private List<Integer> otherIdList = new ArrayList<Integer>();
    private List<Cate> otherList = new ArrayList<Cate>();

    private List<CarProperty> carPropertyList = new ArrayList<CarProperty>();
    private Map<String, String> carPropertyMap = new HashMap();

    public Map<String, String> getCarPropertyMap() {
        return carPropertyMap;
    }

    public void setCarPropertyMap(Map<String, String> carPropertyMap) {
        this.carPropertyMap = carPropertyMap;
    }

    public List<CarProperty> getCarPropertyList() {
        return carPropertyList;
    }

    public void setCarPropertyList(List<CarProperty> carPropertyList) {
        this.carPropertyList = carPropertyList;
    }

    private List<CarPicture> carPictureList = new ArrayList<CarPicture>();

    public List<CarPicture> getCarPictureList() {
        return carPictureList;
    }

    public void setCarPictureList(List<CarPicture> carPictureList) {
        this.carPictureList = carPictureList;
    }

    public Cate getBrand() {
        return brand;
    }

    public void setBrand(Cate brand) {
        this.brand = brand;
    }

    public Cate getSeries() {
        return series;
    }

    public void setSeries(Cate series) {
        this.series = series;
    }

    public List<Cate> getOtherList() {
        return otherList;
    }

    public void setOtherList(List<Cate> otherList) {
        this.otherList = otherList;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Integer seriesId) {
        this.seriesId = seriesId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public List<Integer> getOtherIdList() {
        return otherIdList;
    }

    public void setOtherIdList(List<Integer> otherIdList) {
        this.otherIdList = otherIdList;
    }

    public void setId(Integer id) {
        this.id = id;  
    }        
    public Integer getId() {  
        return this.id;  
    }  

    public void setName(String name) {  
        this.name = name;  
    }        
    public String getName() {  
        return this.name;  
    }  

    public void setNameShort(String nameShort) {  
        this.nameShort = nameShort;  
    }        
    public String getNameShort() {  
        return this.nameShort;  
    }  

    public void setKeyword(String keyword) {  
        this.keyword = keyword;  
    }        
    public String getKeyword() {  
        return this.keyword;  
    }  

    public void setFirstPicUrl(String firstPicUrl) {  
        this.firstPicUrl = firstPicUrl;  
    }        
    public String getFirstPicUrl() {
        if(StringUtil.isEmpty(this.firstPicUrl)){
           if(this.getCarPictureList()!=null && this.getCarPictureList().size()>0){
               this.firstPicUrl = getCarPictureList().get(0).getPicUrl();
           }
        }
        return this.firstPicUrl;  
    }  

    public void setDetails(String details) {  
        this.details = details;  
    }        
    public String getDetails() {  
        return this.details;  
    }  

    public void setSortNum(Integer sortNum) {  
        this.sortNum = sortNum;  
    }        
    public Integer getSortNum() {  
        return this.sortNum;  
    }  

    public void setStatus(Integer status) {  
        this.status = status;  
    }        
    public Integer getStatus() {  
        return this.status;  
    }  

    public void setClickNum(Integer clickNum) {  
        this.clickNum = clickNum;  
    }        
    public Integer getClickNum() {  
        return this.clickNum;  
    }  

    public void setShareNum(Integer shareNum) {  
        this.shareNum = shareNum;  
    }        
    public Integer getShareNum() {  
        return this.shareNum;  
    }  

    public void setGoodNum(Integer goodNum) {  
        this.goodNum = goodNum;  
    }        
    public Integer getGoodNum() {  
        return this.goodNum;  
    }  

    public void setBadNum(Integer badNum) {  
        this.badNum = badNum;  
    }        
    public Integer getBadNum() {  
        return this.badNum;  
    }  

    public void setCreateUserId(Integer createUserId) {  
        this.createUserId = createUserId;  
    }        
    public Integer getCreateUserId() {  
        return this.createUserId;  
    }  

    public void setCreateTime(java.util.Date createTime) {  
        this.createTime = createTime;  
    }        
    public java.util.Date getCreateTime() {  
        return this.createTime;  
    }  

    public void setModifyUserId(Integer modifyUserId) {  
        this.modifyUserId = modifyUserId;  
    }        
    public Integer getModifyUserId() {  
        return this.modifyUserId;  
    }  

    public void setModifyTime(java.util.Date modifyTime) {  
        this.modifyTime = modifyTime;  
    }        
    public java.util.Date getModifyTime() {  
        return this.modifyTime;  
    }  

}